package org.szt.humwiki.account;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class LoginController {

	@RequestMapping("/login")
	public String login(Model model){
		model.addAttribute("message","Hello World!");
		return "helloworld";
	}
	
	@RequestMapping("/helloworld")
	public ModelAndView helloWord(){
	String message = "Hello World, Spring 3.0!";
	return new ModelAndView("helloworld", "message",message);
	}
	
}
